.widgets 
  .loading-wrap
    margin: 0.5rem 0
    background: var(--alpha50)

.widgets
  overflow: scroll
  flex-grow: 1
  scrollbar-width: none
  scrollbar(0, 0)
  z-index: 1
  line-height: 1.2
  margin: 0 var(--gap-margin)
  .widget-wrapper
    .widget-header
      padding-left: var(--gap-padding)
      padding-right: var(--gap-padding)
      display: flex
      justify-content: space-between
      align-items: baseline
      line-height: 28px
      font-weight: 500
      font-size: $fs-13
      color: var(--text-p1)
      .item 
        display: block
      >span
        text-align: left
        opacity 0.6
      &:empty
        display: none
      .cap-action
        line-height: 0
        color: inherit
        opacity 0.6
        trans2: opacity background
        border-radius: 4px
        padding: 6px
        margin-right: -6px
        svg
          height: 1em
          width: auto
          transform: scale(1.2)
          fill: var(--text-p2)
        &:hover
          color: $color-hover
          background: var(--alpha100)
          opacity 1
          svg
            fill: $color-hover

    .widget-body
      color: var(--text-p1)
      p
        margin-top: .5em
        margin-bottom: .5em
        line-height: 1.5


.widget-wrapper
  display: block
  padding-bottom: 32px

.l_left .widgets
  .widget-wrapper
    &:first-child
      margin-top: 32px

.l_right .widgets
  &:empty 
    display: none
  .widget-wrapper
    .widget-header
      padding-left: var(--gap-padding)
      padding-right: var(--gap-padding)
  // 小屏幕
  @media screen and (max-width: $device-laptop)
    .widget-wrapper
      margin-top: var(--gap-margin)
      border-radius: $border-card
  // 大屏幕
  @media screen and (min-width: $device-laptop)
    .widget-wrapper.markdown .widget-body
      background: var(--block)
